from django.conf.urls import url

from . import views


urlpatterns = [
    url(r'^(?P<id>\d+)/(?:(?P<slug>[\w-]+)/)?$', views.profile, name='profile'),

    url(r'^login/$', views.login, name='login'),
    url(r'^logout/$', views.logout, name='logout'),

    url(r'^register/$', views.register, name='register'),
    url(r'^register/confirm/(?P<key>[0-9a-f]{32})/$', views.register_confirm, name='register_confirm'),

    url(r'^reset/$', views.reset, name='reset'),
    url(r'^reset/confirm/(?P<key>[0-9a-f]{32})/$', views.reset_confirm, name='reset_confirm'),

    url(r'^setting/(?P<id>\d+)/$', views.setting, name='setting'),

    url(r'^password/$', views.password, name='password'),

    url(r'^avatar/$', views.avatar, name='avatar'),
    url(r'^upload_avatar/$', views.upload_avatar, name='upload_avatar'),
    url(r'^save_uploaded_avatar/$', views.save_uploaded_avatar, name='save_uploaded_avatar'),
]
